package com.free.semantic.core.funcimpl;

import com.free.semantic.common.RelationItem;
import com.free.semantic.core.Context;
import com.free.semantic.core.RelationFunction;

public abstract class BaseFuncImpl implements RelationFunction {

    private RelationItem relationItem;

    public RelationItem getRelationItem() {
        return relationItem;
    }

    public void setRelationItem(RelationItem relationItem) {
        this.relationItem = relationItem;
    }

    public <T> void setValue(Context context, T value) {
        context.setValue(relationItem.getDestObject(), value);
    }

}
